<?php
require_once("../../inc/global.php");
require_once("../menusys/function.php");
adminislogin();
$MenuID=$_GET["MenuID"];
$id=$_GET["id"];

if(!isGetRule($MenuID,$_SESSION[ADMINSESSION][0],4) && strtolower($_SESSION[ADMINSESSION][1])!='admin'){
	YKT_error('对不起，你没有操作的权限',$_SERVER['HTTP_REFERER']);
}
//获取表名
$DataTableName=$System->GetTableName($MenuID);

$db->exec("delete from {$DataTableName} where {$DataTableName}0={$id} limit 1");;
YKT_error('删除成功',$_SERVER['HTTP_REFERER']);

?>